home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / amos / amoslist-0195.lzh / AMOSLIST / text0138.txt < prev    next >
Encoding:
Text File  |  1995-02-01  |  1.6 KB  |  41 lines

  1. On Fri, 13 Jan 1995, Ben Marty wrote:
  2.  
  3. > > I run into a problem when coding my next game, hope somebody can help
  4. > > me with this...
  5. > > 
  6. > > Now, this is a piece of code from my game:
  7. > > 
  8. > > Sam Loop On
  9. > > Sam Play 1,1 
  10. > > Sam Loop Off
  11. > > Sam Play 2,2
  12. > > 
  13. > > I want to play a humming sound continuously on channel 1 and some
  14. > > other samples like explosions and laser zaps on other channels.
  15. > > But with the previous example the Sam Loop Off commands stops looping, so I 
  16. > > only hear the humming sample once and then an explosion... Then if I
  17. > > remove it the explosion sample will be played continuously.
  18. >     I think the solution will involve removing the Sam Loop Off statement
  19. > and finding a way to stop other sound effects.  Isn't there a command to stop
  20. > a channel from playing or something, or silence it?  turn the volume of the
  21. > chanel down maybe?  Play a silent sample on the channel?  Otherwise perhaps
  22. > you'll just have to not use Sam Loop and manually play it at regular intervals.
  23.  
  24. Another solution (albeit convoluted) is to make a tracker in Soundtracker 
  25. etc that plays the continuous sound in channel 1 (ie loop the sample in 
  26. the tracker program).  Then simply play the tracker in your game, whilst 
  27. making explosion sounds etc in the other channels.  ;]
  28.  
  29. |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
  30.    Stuart Matthews  -  University of Queensland, Australia
  31.  
  32.    E-mail : co314519@mailbox.uq.oz.au    |     "It's an older code,
  33.    Finger : co314519@dingo.cc.uq.oz.au   |      but it checks out..."
  34.  
  35. |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
  36.  
  37.  
  38.